cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
include_directories("/usr/include/jsoncpp/")
aux_source_directory(./ SRCS)

# Msg静态库
add_library(MsgService STATIC ${SRCS})

# 测试MsgService
add_subdirectory(Test)

add_executable(AsyncTcpServer AsyncTcpServer.cpp)
target_link_libraries(AsyncTcpServer boost_system)

add_executable(AsyncTcpClient AsyncTcpClient.cpp)
target_link_libraries(AsyncTcpClient boost_system pthread)